package net.huosen.blog.service.impl;

import java.util.List;

import javax.annotation.Resource;

import net.huosen.blog.dao.IArticleDao;
import net.huosen.blog.model.Article;
import net.huosen.blog.service.IArticleService;

import org.springframework.stereotype.Component;

@Component("articleService")
public class ArticleServiceImpl implements IArticleService {

	@Resource(name="articleDao")
	private IArticleDao articleDao;
	
	@Override
	public List<Article> getList() {
		
		return articleDao.getList();
	}

	@Override
	public int insert(Article article) {
		
		return articleDao.insert(article);
	}

}
